package demo01;

/**
 * 匿名对象当只使用一次的时候可以用匿名对象
 */

public class Anonymous {
    public static void main(String[] args) {
        Person person = new Person();
        person.name = "李华";
        person.show();
        System.out.println(new Person().name = "张杰");
    }
}
